xen/arm: Flush TLBs before turning on the MMU to avoid stale entries
authorJulien Grall <julien.grall@arm.com>
Tue, 27 Feb 2018 11:15:57 +0000 (11:15 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 27 Feb 2018 20:07:05 +0000 (12:07 -0800)
commit1c473c42199a8f4d70533c202e1c57ecd1dad35b
tree7fc48dfcc8bbd17df149bf48f9cf6b572ac2cbd4
parentd81925f7b37efd96711f31832e0b03fa3b304b48
xen/arm: Flush TLBs before turning on the MMU to avoid stale entries

We don't know what is the state of the TLBs when booting Xen. To avoid
stale entries, it is necessary to flush the TLBs before turning on the
MMU.

Reported-by: Iain Hunter <iain@hunterembedded.co.uk>
Signed-off-by: Julien Grall <julien.gralL@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm32/head.S
xen/arch/arm/arm64/head.S